import { createStore,applyMiddleware } from 'redux'
import {combineReducers } from 'redux-immutable'
import thunk from 'redux-thunk'

//登录注册的 reducer
import userReducer from './modules/user'

const reducer = combineReducers({
    user:userReducer
})
//新建管理器
const store = createStore(reducer,applyMiddleware(thunk))
//使用中间件 派发异步事件

export default store